<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/views/include/nocachehead.jsp"%>
<c:set var="share" scope="page" value="${requestScope.SHARE}"></c:set>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看分享--${share.resourceTitle}</title>
<link href="/skyline/css/comment.css" rel="stylesheet" type="text/css" />
<link href="/skyline/css/base.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/stringutil.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/pagination.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/comment.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/share.js"></script>
<%@ include file="/views/include/statusbar.jsp"%>
${share.resourceTitle }<br>
	来自:<a href="">${share.resourceOwnerNickname}</a>/
	<a href="${pageContext.request.contextPath}/article/list/category/${share.resourceSourceId}.html">${share.resourceSoureceName}</a>/
	<a href="${pageContext.request.contextPath}/article/view/${share.resourceId }.html">${share.resourceTitle }</a>
&nbsp;&nbsp;
日期:<fmt:formatDate value="${share.createTime}" type="both" />&nbsp;&nbsp;
类型:日志<br>
<skyline:share type="SHARE" curClass="class1" value="分享" resourceId="${share.id}" />
<br>
<hr>
${share.resourceContent }
<hr>
<a id='upA' href="javascript:Vote.up('upA','upFont','downA','downFont','disableStyle',${share.id},${share.up},'SHARE')">顶</a>(<font id="upFont">${share.up}</font>)
&nbsp;
<a id='downA' href="javascript:Vote.down('upA','upFont','downA','downFont','disableStyle',${share.id},${share.down},'SHARE')">踩</a>(<font id="downFont">${share.down}</font>)
&nbsp;&nbsp;分享(${share.shareNum })&nbsp;评论(${share.commentNum})&nbsp;&nbsp;&nbsp;总分享(${share.totalShareNum })
	<script type="text/javascript">
	function showShareCommentDiv(){
		var shareCommentDiv=document.getElementById("shareCommentDiv");
		var resCommentDiv=document.getElementById("resCommentDiv");
		shareCommentDiv.style.display="";
		resCommentDiv.style.display="none";
	}
	function showResCommentDiv(){
		var shareCommentDiv=document.getElementById("shareCommentDiv");
		var resCommentDiv=document.getElementById("resCommentDiv");
		shareCommentDiv.style.display="none";
		resCommentDiv.style.display="";
	}
	</script>
	<br>
	<a href="javascript:showShareCommentDiv()">TA的评论</a>&nbsp;&nbsp;
	<a href="javascript:showResCommentDiv()">全站评论</a>
	<div id="shareCommentDiv" style="display:block">
		<skyline:comment maxSize="5"  commentType="SHARE" objId="shareComment"  contextPath="/skyline" resourceId="${share.id}" resourceName="${share.resourceTitle}"  ownerId="${share.sharerId}" pageSize="4" divWidth="640" shareResourceId="${share.resourceId }" shareOwnerId="${share.resourceOwnerId}" shareCommentType="ARTICLE"/>
	</div>
	<div id="resCommentDiv" style="display:none">
		<skyline:comment maxSize="5"  commentType="ARTICLE" objId="articleComment" contextPath="/skyline" resourceId="${share.resourceId}" resourceName="${share.resourceTitle}"  ownerId="${share.resourceOwnerId}"/>
	</div>
</body>
</html>